/**
 * Copyright (C), 2020-2021 by colley.ma
 * File Name: ArchiveProperties.java
 * Encoding: UTF-8
 * Date: 2021年10月11日 下午8:10:04
 * History:
 */
package com.swak.frame.datarchive.config;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import com.swak.frame.datarchive.constants.DataArchiveConstants;

@Validated
@ConfigurationProperties(prefix = DataArchiveConstants.CONFIG)
public class DataArchiveProperties {

    /** 数据源 **/
	@NotBlank
    private String dataSoruceName;

    /** email配置 **/
	@NotNull
    private ArchivemailConfig email;

    public String getDataSoruceName() {
        return dataSoruceName;
    }

    public void setDataSoruceName(String dataSoruceName) {
        this.dataSoruceName = dataSoruceName;
    }

    public ArchivemailConfig getEmail() {
        return email;
    }

    public void setEmail(ArchivemailConfig email) {
        this.email = email;
    }
}
